import { getQuestApi } from "../../utils/api";
export default {
  state() {
    return {
      questlist: [],
    };
  },
  mutations: {
    questiondata(state, payload) {
      state.questlist = payload;
    },
  },
  actions: {
    async questiondata({ commit }) {
      const res = await getQuestApi();
      commit("questiondata", res.list[0].car);
      // console.log(res.list[0].car);
    },
  },
  modules: {},
};
